home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: ??? MsVC 4.0 (NT) Need Instance Handle to DLL?
- Date: 29 Feb 1996 21:36:35 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4h5693$s7f@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe8.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 28, 1996 03:22:24 in article <??? MsVC 4.0 (NT) Need Instance Handle
- to DLL?>, 'andle@biode.com (Jeffrey C. Andle)' wrote:
-
-
- >Since DllMain () is now an optional procedure and NT doesn't
- >seem to call it anyways when I add one, how do I get the DLL's
- >instance handle? There must be some linker switch that I am
- >missing which tells VC to link in the DllMain at startup.
- >
- My experience is that NT3.51 and Win95 systems both call DllMain.
- Of course, the docs say it's DllEntryPoint instead. I recall one
- program I wrote where the latter was called. I did not have time
- to investigate what was different about that one, but in all my
- other DLL's, DllMain gets called without failure.
-
- But, anyway, if you can't make it work, try GetModuleHandle().
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-